{% extends "base.html" %}
{% load staticfiles %}
{% block title %}各位宝~你好啊！{% endblock %}
{% block content %}
<h3>代刷学习通，包售后，代刷过程中可正常上课打卡，正常情况五天可以完成。</h3>
<h3>学习通6元/门（包考试），安全微课3元/大模块(包考试)</h3>
<h3>学习通、易班考试1元/门</h3>
<div class="row text-center vertical-middle-sm">
    <h3>{{ show }}</h3>
    <form class="form-horizontal" method="post">
        {% csrf_token %}
        <div class="form-group">
			<label for="lianxi" class="col-md-5 control-label" style="color:blue">
                联系方式：
            </label>
			<input type="text" id="lianxi" name="lianxi">
		</div>
		<input type="submit" value="提交" class="btn btn-primary btn-lg">
    </form>
    <br><br><br><br><br><br>
    <p>当前有{{ numder }}人已成功提交联系方式。<a href="{% url 'zhuye:zhuye_index' %}">刷新</a></p>
    <p><button onclick="VIP()">VIP贵宾通道</button><button onclick="accomplish()">查询进度</button></p>
</div>
<script type="text/javascript" src='{% static "js/jquery.js" %}'></script>
<script type="text/javascript" src='{% static "js/layer.js"%}'></script>
<script type="text/javascript">
    function VIP() {
        var index = layer.open({
            type: 1,
            skin: "layui-layer-rim",
            area: ["300px", "200px"],
            title: "VIP贵宾通道",
            content: '<div class="text-center" style="margin-top:20px"><p>哦，你很有钱吗？</p><p>VIP很贵的哦~</p></div>',
            btn: ['有钱', '没钱'],
            btn1: function (index) {
                layer.close(index);
                var index = layer.open({
                    type: 1,
                    skin: "layui-layer-rim",
                    area: ["300px", "200px"],
                    title: "VIP贵宾通道",
                    content: '<div class="text-center" style="margin-top:20px"><p>可惜我对钱没有兴趣耶。</p><p>懂！！！</p></div>',
                    btn: ['懂','不懂'],
                    btn1: function (index, layero) {
                        layer.close(index);
                    },
                    btn2: function (index, layero) {
                        layer.close(index);
                        var index = layer.open({
                            type: 1,
                            skin: "layui-layer-rim",
                            area: ["300px", "200px"],
                            title: "VIP贵宾通道",
                            content: '<div class="text-center" style="margin-top:20px"><p>哦！VIP贵宾的价格为9元/门。</p><p>你确定需要吗？</p></div>',
                            btn: ['确定','取消'],
                            btn1: function (index, layero) {
                                layer.close(index);
                                var index = layer.open({
                                    type: 1,
                                    skin: "layui-layer-rim",
                                    area: ["300px", "200px"],
                                    title: "VIP贵宾通道",
                                    content: '<div class="text-center" style="margin-top:20px"><p>👇添加我请注明来意👇</p><p>XLK_will_become_rich</p></div>',
                                    btn: ['确定'],
                                    btn1: function (index, layero) {
                                        layer.close(index);
                                    },
                                });
                            },
                            btn2: function (index, layero) {
                                layer.close(index);
                            },  
                        });
                    },  
                });
            },
            btn2: function (index, layero) {
                layer.close(index);
            },
        });
    }

    function accomplish(){
        location.replace("{% url 'zhuye:zhuye_caxun' %}"); 
    }

    if ( window.history.replaceState ) {
        window.history.replaceState( null, null, window.location.href );
    }
    
</script>
{% endblock %}
